import React,{Suspense} from 'react'
import {useRoutes} from 'react-router-dom'
import routes from '../../routes'
import './index.css'

export default function Body(){

    const element=useRoutes(routes)

    return (
        <div className={'body'}>
            <Suspense fallback={<h1>加载中。。。。</h1>}>
                {element}
            </Suspense>
        </div>
    )
}